@import '~antd/lib/style/themes/default.less';

.preTab{
    text-align: center;
    // background-color: #1890FF;
    border-radius: 5px;
    border-color: #1890FF;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.12);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.04);
    border: 1px solid #1890FF;
    cursor: pointer;
    height: 32px;
    line-height: 32px;
    margin-right: 10px;
    margin-bottom: 15px;
    // :first-child{
    //     border-radius: 10px 10px 0 0;
    //     background: #000;
    // }
}
.preTabActive{
    text-align: center;
    background-color: #1890FF;
    border-radius: 5px;
    border-color: #1890FF;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.12);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.04);
    border: 1px solid #1890FF;
    cursor: pointer;
    height: 32px;
    color: #fff;
    line-height: 32px;
    margin-right: 10px;
    margin-bottom: 15px;
}
.preDiv{
    display: flex;
    white-space: pre-wrap;
    width: 100%;
    flex-wrap: wrap;
    text-align: center;
    .preImg{
        // padding-top: 20px;
        text-align: center;
        // padding: 0 20px 0 0;
        // margin: 0 auto 20px auto;
        margin-bottom: 20px;
        position: relative;
        margin-left: 20px;
        img{
            width: auto;
            height: 150px;
        }
    }
}
.fenye{
    text-align: center;
    margin-top: 30px;
}

.info {
    box-sizing: content-box;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    overflow: hidden;
    &:before {
      content: ' ';
      position: absolute;
      z-index: 1;
      background-color: fade(#000, 50%);
      transition: all 0.3s;
      width: 100%;
      height: 100%;
      opacity: 0;
      left: 0;
      top: 0;
    }
    // &:after {
    //   content: ' ';
    //   position: absolute;
    //   z-index: 1;
    //   background-color: fade(red, 100%);
    //   transition: all 0.3s;
    //   width: 100%;
    //   height: 100%;
    //   opacity: 0;
    //   left: 0;
    //   top: 0;
    // }
  }
  
  
  .actions {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    // left: 0;
    // top: 0;
    z-index: 10;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s;
    i {
      z-index: 10;
      transition: all 0.3s;
      cursor: pointer;
      font-size: 16px;
      width: 16px;
      color: rgba(255,255,255,0.7);
      margin: 0 4px;
      &:hover {
        color: rgba(255,255,255,1);
      }
    }
  }
  
  .info:hover {
    &:before {
      opacity: 1;
    }
    .actions{
      opacity: 1;
    }
  }
  
  .info:hover + .actions,
  .actions:hover {
    opacity: 1;
  }


